<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>userbysession</title>
</head>
<body>
<p>LoginName:<span th:text="${session.loginUser.username}">LoginUserName</span></p>
<p>LoginAddress:<span th:text="${session.loginUser.address}">LoginUserAddress</span></p>

<!--下面是动态路径-->
<a th:href="@{/getUser}">用户页面</a>

<div th:if="${user.isAdmin()} == false"></div>

<div th:with="isEven=(${prodStat.count} % 2 == 0)"></div>

</body>
</html>